package com.blog.wu.myblog.controller;

import com.blog.wu.myblog.entity.LoginLog;
import com.blog.wu.myblog.service.LoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Author wuyanshen
 * @Date 2018-10-12 下午5:17
 * @Discription 用户登录记录controller
 */
@Controller
@RequestMapping("/back/loginlog")
public class LoginLogController {

    @Autowired
    private LoginLogService loginLogService;

    @RequestMapping("list")
    public void list(Model model, LoginLog loginLog) {
        List<LoginLog> loginLogList = loginLogService.findList(loginLog);
        model.addAttribute("loginLogList", loginLogList);
    }
}
